<div class="form-box" id="login-box">
    <div class="header">Đăng nhập hệ thống</div>
    <?php $form=$this->beginWidget('CActiveForm', array(
            'id'=>'login-form',
            'enableClientValidation'=>true,
            'clientOptions'=>array(
                'validateOnSubmit'=>true,
            ),
        )); ?>
        <div class="body bg-gray">
            <div class="form-group">
                <?php echo $form->textField($model,'username',array('size'=>30,'maxlength'=>30,'class'=>'form-control','placeholder'=>'Tên đăng nhập')); ?>
                <?php echo $form->error($model,'username'); ?>
            </div>
            <div class="form-group">
                <?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>250,'class'=>'form-control','placeholder'=>'Mật khẩu')); ?>
                <?php echo $form->error($model,'password'); ?>
            </div>      
        </div>
        <div class="footer">                                                               
            <button type="submit" class="btn bg-olive btn-block">Đăng nhập</button>  
            
            <!-- <p><a href="#">I forgot my password</a></p> -->
        </div>
    <?php $this->endWidget(); ?>
</div>